import Home from "../view/Home";
import About from "../view/About";
import Message from "../view/Message";
import My from "../view/My";
import { Navigate } from 'react-router-dom'
const router = [
    {
        path: '/',
        element: <Navigate to={'/home'}></Navigate>
    },
    {
        path: '/home',
        element: <Home></Home>
    },
    {
        path: '/about',
        element: <About></About>
    },
    {
        path: '/message',
        element: <Message></Message>
    },
    {
        path: '/my',
        element: <My></My>
    },
]
export default router